//
// Created by musictom on 2018-05-19.
//

#include "lib2.h"

void DLL_EXPORT li2() {
    auto arrs = {3,2,7,6,7};
    for (auto &item : arrs) {
        std::cout << "item:" << item << std::endl;
    }
}

extern "C" DLL_EXPORT BOOL APIENTRY DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
switch (fdwReason)
{
case DLL_PROCESS_ATTACH:
// attach to process
// return FALSE to fail DLL load
break;

case DLL_PROCESS_DETACH:
// detach from process
break;

case DLL_THREAD_ATTACH:
// attach to thread
break;

case DLL_THREAD_DETACH:
// detach from thread
break;
}
return TRUE; // succesful
}
